#include<stdio.h>
typedef unsigned char *byte_pointer;
int main()
{
	short int v=-12345;

	unsigned short uv=(unsigned short) v;
	printf("v=%d,uv=%u\n",v,uv);
	unsigned u=4294967295u;
	int tu=(int) u;
	printf("u=%u,tu=%d\n",u,tu);
	printf("%.2x\n",*(&u));
	printf("%.2x\n",*(&tu));
	int x=-1;
	u=2147483648;
	printf("x=%u=%d\n",x,x);
	printf("u=%u=%d\n",u,u);
	int y=-2147483648;
	printf("%.2x\n",*(&y));
}
